"""
语音活动检测 (Voice Activity Detection, VAD)
"""
import queue
import threading
from common.log import logger


class VAD(object):
    def __init__(self, vad_queue: queue.Queue):
        self.vad_queue = vad_queue
        self.thread = threading.Thread(target=self._detect_voice, daemon=True)
        self.running = False

    def start_vad(self):
        logger.error("NotImplementedError")
        raise NotImplementedError

    def stop_vad(self):
        logger.error("NotImplementedError")
        raise NotImplementedError

    def _detect_voice(self):
        raise NotImplementedError
